import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './vuex/store.js'
import moment from 'moment'
// const path = require('path')

//集成第三方包
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)

import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload,{
  loading:"../src/statics/site/images/01.gif"
})

//全局过滤器
Vue.filter('dateFmt',(input,formatString="YYYY-MM-DD HH:mm:ss")=>{
  return moment(input).format(formatString)
})

//导入全局样式
import "./statics/site/css/style.css"

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
